import request from "@/utils/request";


// 获取非办公机构下拉列表
export function getNonOfficialRoomList(params) {
  return request({
    url: "/nonOfficialInstitution/manage/getNonOfficialRoomList",
    method: "get",
    params,
  });
}

// 获取区域部门下拉列表
export function getRegionDeptList(params) {
  return request({
    url: "/nonOfficialInstitution/manage/getRegionDeptList",
    method: "get",
    params,
  });
}


// 列表
export function list(params) {
  return request({
    url: "/nonOfficialInstitution/manage/list",
    method: "get",
    params,
  });
}

// 删除
export function deleteTarget(id) {
  return request({
    url: `/nonOfficialInstitution/manage/${id}`,
    method: "delete",
  });
}

// 新增
export function add(data) {
  return request({
    url: `/nonOfficialInstitution/manage`,
    method: "post",
    data
  });
}

// 修改
export function edit(data) {
  return request({
    url: `/nonOfficialInstitution/manage`,
    method: "put",
    data
  });
}

// 详情
export function detail(id) {
  return request({
    url: `/nonOfficialInstitution/manage/${id}`,
    method: "get",
  });
}
